package com.gexin.common.utils;

import javax.servlet.http.HttpSession;

//先做一个工具类方便在任意地方获取 session
public class SessionKit {
	private static ThreadLocal<HttpSession> tl = new ThreadLocal<HttpSession>();

	public static void put(HttpSession s) {
		tl.set(s);
	}

	public static HttpSession get() {
		return tl.get();
	}

	public static void remove() {
		tl.remove();
	}
}
